import { Button } from '@antmjs/vantui';
import Taro from '@tarojs/taro';
import classNames from 'classnames';
import styles from './SwitchIdentities.module.less';

export default function SwitchIdentities() {
  return (
    <Button
      onClick={() => {
        Taro.redirectTo({
          url: '/pages/login/role',
        });
      }}
      className={classNames(
        'leading-0 px-2 py-1 h-auto bg-white rounded-full text-xs',
        styles.change
      )}
    >
      切换身份
    </Button>
  );
}
